<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Dotnet2-web 后台管理系统</title>
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<%@ include file="/jsp/common/commonJs.jsp"%>
</head>
<body>
<!--header-->
<%@ include file="/jsp/top.jsp"%>
<!--header-->

<!--aside nav-->
<%@ include file="/jsp/left.jsp"%>
<!--aside nav  -->
<section class="rt_wrap content mCustomScrollbar" style="margin-top:10px;">
      <div class="page_title">
       <a class="fr top_rt_btn">右侧按钮</a>
      </div>
      <table class="table">
       <tr>
	        <th>产品名称</th>
	        <th>产品分类</th>
	        <th>操作</th>
       </tr>
       	<c:forEach items="${page.list}" var="product">
      		<tr align="center">
		        <td>${product.productName}</td>
		        <td>${product.productType==1?"基本产品":product.productType==2?"高级产品":"定制产品"}</td>
		        <td>
		        	<c:if test="${product.isDelete==0}">
		        		<a href="${path}/template/toAddTemplate.do?productId=${product.id}">模板设置</a>
			        	<a href="${path}/field/toAdd.do?productId=${product.id}">添加属性</a>
			        	<a href="${path}/template/toAddPrice.do?productId=${product.id}">添加价格表</a>
		        	</c:if>
		        	<c:if test="${product.isDelete==1}">
		        		<font color=red>该产品已被删除</font>
		        	</c:if>
		        </td>
		    </tr>
      	</c:forEach>
      </table>
	 <aside class="paging">
		  <c:forEach items="${page.pageView}" var="page">
		  		${page}
		  </c:forEach>
	 </aside>
</section>

</body>
</html>
